package com.qfedu.hotelssm.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author dzl
 * @date 2022/9/1 19:54
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CtOrdersDto2 {
    private Integer id;
    //用户id
    private Integer userid;
    //用户姓名
    private String username;
    //用户电话
    private String userphone;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")//返回
    //订单日期
    private Date ctime;
    //菜的价格
    private Double price;
    //菜名
    private String name;
    //菜名id
    private Integer vegetableid;
    //类别
    private String kind;
}
